package com.du.dupload;

import java.util.List;

public class VKwrapper implements IVideoUploader {

	private static final String OUT = AppConfig.getInstance().getOutDir();
	private String filePath;
	private VKUploader uploader;
	
	VKwrapper(String filePath) {
		super();
		this.filePath = filePath;
	}

	@Override
	public float getProgressPercent() {
		return uploader.getProgress();
	}

	@Override
	public void close() {

	}

	@Override
	public void startUpload() {
		
		uploader.upload();

	}

	@Override
	public boolean isCompleted() {
		return uploader.isFinished();
	}

	@Override
	public boolean isError() {
		return uploader.isError();
	}

	@Override
	public void stopUpload() {
		uploader.cancel();
	}

	@Override
	public void initializeUpload() {
		uploader = new VKUploader(filePath);
	}

	@Override
	public List<String> getPath() {
		
		return uploader.getResult();
	}

	

	@Override
	public String getName() {
		return uploader.getName();
	}

}
